<?php
$ncount = (int)$conf->a['news-count-digradio'];
?>


<div class='c-box-headline c-box-300 c-box c-box-latest-videos' id='dig-latest' >	
	<h6>
		New Dig<br />
		<span>Check out what's new on digradio</span>	
	</h6>
	
	<section id="latest-videos">

	<?PHP
	$items=0;
	
	foreach($category_items as $x)
	{
	 	
	
		if($items<1 && $x['type']=='video'){
			?>
			
			 <li>
			<div class='c-box-latest-item-text-bida'><a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer c-box-latest-link"><?PHP  echo $x['title']."<br />";?></a>
				<?php echo $x['secondary']; ?>
			 </div>                                        
                         <div class='c-box-latest-item-image' style="background-image:url('<?PHP echo ap($x['thumb']);?>');">
                             <a href='play/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="popoutplayer">
                              <img src="assets/images/play-mini.png" width="60" height="24" alt="Play Mini">
                             </a>
                        </div>
                 </li>
			<?PHP
		$items++;
		}
	
	}
?>
</section>
<section id="latest-news">
<?php	
         
               foreach($posts as $x)
               {
               if($x['post_type']=='news' && $x['w']<=$ncount){	
					?>
					
						 <li>
			<div class='c-box-latest-item-text-sub'><a href='news/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>' class="c-box-latest-link"><?PHP  echo $x['title']."<br />";?></a>
				<?php echo $x['secondary']; ?>
			 </div>                                        
                 </li>				
					<?php               
						}
               }
         ?>
          <li class="more-right">
          	<a class="mgalleries" href="newsview/<?php echo $conf->qm[1]; ?>">MORE NEWS</a>
          </li>
</section>
</div>

